package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 陈润强
 * @since 2020-12-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Chapter extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 章节ID
     */
    @TableId(value = "chapter_id", type = IdType.AUTO)
    private Integer chapterId;

    /**
     * 章节名
     */
    private String chapterName;

    /**
     * 章节状态：0不可操作；1可操作
     */
    private Integer chapterType;

    /**
     * 节点
     * */
    private Integer chapterNode;

    private List<Chapter> childens = new ArrayList<>();


}
